package com.financial.service.platbalancepay.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UrlConstants {
    //发送预支付
    public static String BALANCE_MAKEPAY_URL;
    //微信支付余额退款
    public static String BALANCE_REFUND_URL;
    //余额支付查询够样
    public static String BALANCE_PAY_QUERY_URL;
    /**
     * 余额支付异步回执
     */
    public static String PLATFROM_BALANCE_ASYN_URL;
    /**
     * 获取accessToken地址
     */

    public static String ACCESSTOKEN_URL;

    public  String getBalanceAccesstokenUrl() {
        return BALANCE_ACCESSTOKEN_URL;
    }

    public  String getBalancePayQueryUrl() {
        return BALANCE_PAY_QUERY_URL;
    }
    @Value("${url.balance_pay_query_url}")
    public  void setBalancePayQueryUrl(String balancePayQueryUrl) {
        BALANCE_PAY_QUERY_URL = balancePayQueryUrl;
    }

    @Value("${url.balance_accesstoken_url}")
    public  void setBalanceAccesstokenUrl(String balanceAccesstokenUrl) {
        BALANCE_ACCESSTOKEN_URL = balanceAccesstokenUrl;
    }

    /**
     * 获取余额平台accessToken地址
     */

    public static String BALANCE_ACCESSTOKEN_URL;

    public  String getPlatfromBalanceAsynUrl() {
        return PLATFROM_BALANCE_ASYN_URL;
    }

    public  String getBalanceRefundUrl() {
        return BALANCE_REFUND_URL;
    }
    @Value("${url.balance_refund_url}")
    public  void setBalanceRefundUrl(String balanceRefundUrl) {
        BALANCE_REFUND_URL = balanceRefundUrl;
    }

    @Value("${url.platfrom_balance_asyn_url}")
    public  void setPlatfromBalanceAsynUrl(String platfromBalanceAsynUrl) {
        PLATFROM_BALANCE_ASYN_URL = platfromBalanceAsynUrl;
    }



    public  String getBalanceMakepayUrl() {
        return BALANCE_MAKEPAY_URL;
    }
    @Value("${url.balance_makepay_url}")
    public  void setBalanceMakepayUrl(String balanceMakepayUrl) {
        BALANCE_MAKEPAY_URL = balanceMakepayUrl;
    }

    public String getAccesstokenUrl() {
        return ACCESSTOKEN_URL;
    }
    @Value("${url.accesstoken_url}")
    public void setAccesstokenUrl(String accesstokenUrl) {
        ACCESSTOKEN_URL = accesstokenUrl;
    }

}